import {PipeTransform, Injectable, ArgumentMetadata, BadRequestException} from '@nestjs/common';

@Injectable()
export class CustomValidatePipe implements PipeTransform<string,string> {
    transform(value: string, metadata: ArgumentMetadata): string {
        console.log(metadata)
        // if(!value){
        //     throw new BadRequestException(`value is undefined`)
        // }
        console.log('value log:',value)
        return value
    }
}
